#include "mainwindow.h"
#include <QApplication>

QString getQssContent()
{
    QFile styleSheet(":/my_style_sheet.qss");
    if (!styleSheet.open(QIODevice::ReadOnly))
    {
        qWarning("\r\n  qss failed, Can't open the style sheet file.  \r\n");
        return "";
    }

    qWarning("\r\n  qss ok!  \r\n");
    return styleSheet.readAll();
}



int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    MainWindow w;
    w.show();
    //a.setStyleSheet(getQssContent());//使用样式表
    return a.exec();
}
